package cn.iocoder.yudao.module.im.job.user;

import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.module.im.service.member.MemberMessageService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class MemberUserSendSubscribeMsgJob implements JobHandler {

    @Resource
    private MemberMessageService memberMessageService;

    @Override
    public String execute(String param) {
        int count = memberMessageService.sendMemberSubscribeMsg();
        return String.format("发送用户 %s 个", count);
    }

}
